const Mock = require('mockjs');

let users = []
for (let index = 0; index < 8; index++) {
    users.push({
        "id|1000-10000": 1000,
        "age|0-200": 30,
        "name": "@cname",
        "type|1": ["学生", "老师", "个人"],
        "icon|1": ["user1.jpg", "user2.jpg", "user3.jpg", "nav1.jpg"]
    })
}

export default [{
    url: '/mock/userlist.php',
    type: 'get',
    response: () => {
        return {
            "code": 200,
            "message": "成功",
            data: users
        }
    }
}]